<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
@@include('./widget/title.html')
</head>
<body>
<!--_header 作为公共模版分离出去-->
@@include('./widget/header.html')
<!--/_header 作为公共模版分离出去-->

<!--_menu 作为公共模版分离出去-->
@@include('./widget/menu.html')
<!--/_menu 作为公共模版分离出去-->

<section class="Hui-article-box">
    <nav class="breadcrumb">
        <div class="breadcrumb-wrap">
            <span class="c-666 border-left" >编辑</span>

            <a class="btn  radius r" style="line-height:1.6em;margin-top:4px;cursor:pointer;" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i><span>刷新</span></a>
            <a class="btn  radius r mr-10" style="line-height:1.6em;margin-top:4px;cursor:pointer;" href="./numerical-set.html" title="返回"><i class="Hui-iconfont">&#xe67d;</i><span>返回</span></a>
        </div>
    </nav>
    <div class="Hui-article">
         <article class="cl pd-20">

            <table class="table table-bordered mx-table-box">
                <tbody>
                    <tr>
                        <td class="active mx-table-box-left">
                            <div class="mx-label">
                                <i class="Hui-iconfont Hui-iconfont-sanjiao"></i>
                                <span>基本</span>
                            </div>
                        </td>
                        <td class="mx-table-box-right">
                            <table class="table table-border-no mx-goods-info-table">

                                <tr>
                                    <td width="15%" class="text-r"><span class="c-danger">*</span>数值类型：</td>
                                    <td><input style="width:50%;" type="text" id="numType" disabled="disabled" class="input-text"></td>
                                </tr>
                                <tr>
                                    <td width="15%" class="text-r"><span class="c-danger">*</span>适用值：</td>
                                    <td><input style="width:50%;" onkeyup="nums(this)" type="text" id="value" class="input-text"></td>
                                </tr>
                                <!-- <tr>
                                    <td width="15%" class="text-r">是否启用：</td>
                                    <td>
                                        <span class="switch switch-on" id="isEnable" themeColor="#3498db"></span>
                                    </td>

                                </tr> -->
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="active mx-table-box-left">
                            <div class="mx-label">
                                <i class="Hui-iconfont Hui-iconfont-sanjiao"></i>
                                <span>描述</span>
                            </div>
                        </td>
                        <td class="mx-table-box-right">
                            <textarea style="width:70%!important;" id="note" class="textarea ml-50" placeholder="请输入内容"></textarea>
                            <div class="text-c mt-50">
                                <div class="btn btn-primary radius" id="submit">提交</div>

                            </div>
                        </td>
                    </tr>

                </tbody>
            </table>
        </article>
        <!--footer-->
        @@include('./widget/footer.html')
        <!--/footer-->
    </div>
</section>

<!--script 公用脚本-->
@@include('./widget/script.html')
<!--/script 公用脚本-->
<script>
    function nums(obj){
        obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
        obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
        obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个, 清除多余的
        obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
        obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
    }
</script>
<!--请在下方写此页面业务相关的脚本-->
<script src="./js/numerical-set-edit.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>